#ifndef VPFRAME_H
#define VPFRAME_H
#include <mutex>
extern "C"
{
#include <libavcodec/avcodec.h>
}
using namespace std;
class VpFrame
{
private:
    int      m_serial;
public:
    double   m_pts;
    double   m_duration;
    AVFrame* m_frame;
    mutex    m_mutex;

public:
             VpFrame   ();
            ~VpFrame   ();
             VpFrame   (const VpFrame& temp);
    VpFrame& operator= (const VpFrame& temp);
    int      serial    () const;
    void     setSerial (int newSerial);
};

#endif // VPFRAME_H
